package com.mock.ems.service;

import java.util.List;
import java.util.Map;

/**
 * Created by lichengming on 2017/7/8.
 */
public interface ResourceService {

    /**
     * @Title: getMenuListByUserId
     * @Description: 获取用户菜单集合
     * @return List<Map<String,Object>>
     * @throws
     */
    public List<Map<String,Object>> getMenuListByUserId(Long userId);

    /**
     * @Title: getMenuListByRoleId
     * @Description: 获取角色菜单集合
     * @param roleId
     * @return List<Map<String,Object>>
     * @throws
     */
    public List<Map<String,Object>> getMenuListByRoleId(Long roleId);

    /**
     * @Title: deteleMenuByMenuId
     * @Description: 删除菜单，并删除用户权限记录
     * @param menuId
     * @return
     * @throws
     */
    public void deteleMenuByMenuId(Long menuId);
}
